<script type="text/javascript" src="../media/system/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="../media/system/js/jQuery.vietvang.validate.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$('#adminForm').validate({
			});
		});
</script>
<div id="jm-left" class="" >
    <div class="jm-module " id="">
       <div class="jm-module-content">
          <h3 class="jm-title">市町村情報</h3>
          <h2 class="title_h2">◆検索</h2>
          <div class="content-message">
            <table width="200" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td width="30" height="24" align="right" nowrap="">■&nbsp;</td>
                        <td width="170">都道府県を選択</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <select name="pref" id="pref">
                                <option value='0'>指定しない</option>     
                                <?php 
                                    foreach($this->getModel()->getPREF() as $area){
                                        $selected = JRequest::getVar('pref') == $area->PREF_CODE ? 'selected' : '';
                                        echo "<option $selected value='$area->PREF_CODE'>$area->PREF_NAME</option>";
                                    }
                                 ?>    
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td height="15" colspan="2"></td>
                    </tr>
                    <tr>
                        <td height="24" align="right" nowrap="">■&nbsp;</td>
                        <td>市町村名を入力</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input name="keyword" type="text" size="16" value="<?php echo JRequest::getVar('keyword') ?>"/></td>
                    </tr>
                    <tr>
                        <td height="15" colspan="2"></td>
                    </tr>
                    <tr>
                        <td height="24" align="right" nowrap="">■&nbsp;</td>
                        <td>市町村規模（人数）</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input name="TOWN_POPU_START" type="text" size="16" vvName="number" value="<?php echo JRequest::getVar('TOWN_POPU_START') ?>">～
                            <span style="color: red;" name="msg_error"></span>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input name="TOWN_POPU_END" type="text" size="16" vvName="number" value="<?php echo JRequest::getVar('TOWN_POPU_END') ?>">人
                             <span style="color: red;" name="msg_error"></span>
                        </td> 
                    </tr>
                    <tr>
                    <td height="15" colspan="2"></td>
                    </tr>
                    <tr>
                    <td class="center" colspan="2">
                        <button id="search" type="button" onclick="Joomla.submitbutton('search')">検索</button>
                    </td>
                    </tr>
                </tbody>
                </table>
                <input type="hidden" name="task" value="search"/>
                <input type="hidden" name="check" value="1"/>
                <input type="hidden" name="check" value="1"/>
          </div>
          <div class="clearfix"></div>
       </div>
    </div>
 </div>